setInfos(3, "Damian : spanking", "Cyber Master Damian will take care of you - a big 24/7 script including permissions, punishments...", "Indica, Doti", "started", 0xFFFFFF, "en", ["anal", "long", "exhibition", "femaledom", "formale", "humiliation", "urine", "transgender", "options", "spanking", "shopping", "toys", "sperm"]);

// CyberMistress - spanking
//
def endReached = false
def block = "begin"
if(loadString("cybermistress.wanted_start_block")!=null) {
	block = loadString("cybermistress.wanted_start_block")
	save("cybermistress.wanted_start_block",null)
}
def newBlock = block
while(!endReached && newBlock!=null) {
block = null
switch(newBlock) {
case "begin":
	setImage("jewell/strict.jpg")
	def messages0 = ["Well well my naughty little slave, it seems you've earned yourself a spanking.","It's time for your spanking slut!","I'm going to make your ass glow in the dark bitch!","I should really be spanking you more often."]
	show(messages0[getRandom(4)])
	wait(10)
	save("jewell.spank", null)
	block = "prepare"
	break

case "prepare":
	def messages1 = ["Hmmm... with what shall I beat you my darling little painslut?","Now what will I use to destroy your ass...","Oh there's so many wonderful things I could spank you with, how will I choose?"]
	show(messages1[getRandom(3)])
	wait(10)
	switch(getRandom(5)) {
	case 0: block = "spoon"; break
	case 1: block = "brush"; break
	case 2: block = "cane"; break
	case 3: block = "ruler"; break
	case 4: block = "hand"; break
	}
	break

case "spoon":
	def messages2 = ["Go fetch me a wooden spoon, slave!","Go fetch me a wooden spoon, slut!"]
	if(!getBoolean(messages2[getRandom(2)], "Finished Master", "I couldn't find one")) {
		block="prepare"
		break
	}
	block = "spank"
	break

case "brush":
	def messages3 = ["Go fetch me a hairbrush slut!","Go fetch me a hairbrush, slave!"]
	if(!getBoolean(messages3[getRandom(2)], "Finished Master", "I couldn't find one")) {
		block="prepare"
		break
	}	
	block = "spank"
	break

case "cane":
	def messages4 = ["Go fetch me a cane or a crop, bitch!","Go fetch me a cane, painslut!"]
	if(!getBoolean(messages4[getRandom(2)], "Finished Master", "I couldn't find one")) {
		block="prepare"
		save("toys.crop", false)
		break
	}
	block = "spank"
	break

case "ruler":
	def messages5 = ["Go fetch me a ruler, sissy!","Go fetch me a ruler, whore!"]
	if(!getBoolean(messages5[getRandom(2)], "Finished Master", "I couldn't find one")) {
		block="prepare"
		break
	}
	block = "spank"
	break

case "hand":
	def messages6 = ["You'll use your hand this time painslut.","You're going to  use your hand this time, slave."]
	show(messages6[getRandom(2)])
	showButton("Finished Master")
	block = "spank"
	break

case "spank":
	show("Time for your spanking my darling little painslut. Pull down your pants and assume the position. Put a pillow under your butt so it's raised into the air for me. Position yourself to begin spanking.")
	showButton("Finished Master")
	block = "spank2"
	break

case "spank2":
	def messages8 = ["Start spanking bitch, in time with the slaps! Alternate cheeks with each slap!","Begin spanking painslut, in time with the slaps! Alternate cheeks with each slap!"]
	show(messages8[getRandom(2)])
	for(int i = 0 ; i < 50 ; i++) {
		playBackgroundSound("swat.wav")
		wait(0.82+i/250)
	}	
	block = "spank3"
	break

case "spank3":
	show("")
	switch(getRandom(3)) {
	case 0: block = "spank4"; break
	case 1: block = "spank5"; break
	case 2: block = "spank6"; break
	}
	break

case "spank4":
	def messages10 = ["Keep it up you painslut. Full swings, don't get lazy.","Keep spanking bitch, full power. Don't slow down."]
	show(messages10[getRandom(2)])
	for(int i = 0 ; i < 30 ; i++) {
		playBackgroundSound("swat.wav")
		wait(0.85+i/250)
	}	
	block = "spank3"
	break

case "spank5":
	def messages11 = ["Keep spanking slut. I want that ass red.","Don't stop now slut, your punishment isn't over.","Spank yourself harder you useless slut.","I want you to spank yourself harder than you ever have before. I want your arm as sore as your ass bitch!"]
	show(messages11[getRandom(4)])
	for(int i = 0 ; i < 30 ; i++) {
		playBackgroundSound("swat.wav")
		wait(0.85+i/250)
	}	
	block = "spank6"
	break

case "spank6":
	show("Alright "+loadString("intro.name")+", that's enough. Go think about what you did.")
	wait(10)
	block = "finish"
	break

case "finish":
	endReached = true
	return "jewell"
	break

default:
	show("Unfinished ? ("+block+")")
	endReached = true
} // end switch 
newBlock = block
} // end while

// This script, from http://ss.deviatenow.com, is protected by this licence : 
// CC by-NC, see http://creativecommons.org/licenses/by-nc/3.0/
